package com.headingdata.quickstart;

public class Test1 {

    public static void main(String[] args) {
        Student s1 = new Student();
        s1.name = "小明";
        s1.mathScore = 90;
        s1.chineseScore = 100;

        Student s2 = new Student();
        s2.name = "小红";
        s2.mathScore = 88.5;
        s2.chineseScore = 95;

        System.out.println(s1.name + "成绩的平均分是：" + s1.getAverageScare());
        System.out.println(s1.name + "成绩的总分是：" + s1.getTotalScore());
        System.out.println(s2.name + "成绩的平均分是：" + s2.getAverageScare());
        System.out.println(s2.name + "成绩的总分是：" + s2.getTotalScore());
    }
}
